package com.sinry.common.core.exceptions;

import com.sinry.common.core.exceptions.exception.BaseException;
import com.sinry.common.core.exceptions.exception.BusinessException;

/**
 * @author linxinlei
 * @project sinry-cloud
 * @description 业务异常断言
 * @date 2022/5/28
 **/
public interface BusinessExceptionAssert extends Assert {

    @Override
    default BaseException newException(String message) {
        return new BusinessException(this, message);
    }
}
